package com.zhonglz.util.minio;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/***
 * 初始化Minio配置
 * @author zhonglz
 * @date 2019年9月19日
 */
@Configuration
@ConfigurationProperties(prefix = "minio")
public class MinioProperties {

	public static String endpoint;//文件服务器地址例如：http://127.0.0.1:9000
	
	public static String accessKey;//minio用户名
	
	public static String secretKey;//minio密钥
	
	public static String bucketName;//桶名称
	
	public static String serverPath;//绝对路径
	
	public static void setServerPath(String serverPath) {
		MinioProperties.serverPath = serverPath;
	}

	public static void setBucketName(String bucketName) {
		MinioProperties.bucketName = bucketName;
	}

	public static void setEndpoint(String endpoint) {
		MinioProperties.endpoint = endpoint;
	}

	public static void setAccessKey(String accessKey) {
		MinioProperties.accessKey = accessKey;
	}

	public static void setSecretKey(String secretKey) {
		MinioProperties.secretKey = secretKey;
	}

}